#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QFontDatabase>
int main(int argc, char *argv[])
{

    QGuiApplication app(argc, argv);
    //添加字体
    QFontDatabase::addApplicationFont(":/fontawesome/fonts/fontawesome-webfont.ttf");
    //添加字体结束
    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

    return app.exec();
}
